#!/bin/bash

#项目文件读写授权
if [ ! -f "/var/www/sh-container-auth-once" ]; then
	chgrp -R www-data storage && \
	chgrp -R www-data bootstrap/cache && \
	chmod -R 775 storage && \
 	chmod -R 775 bootstrap/cache && \
  	touch "/var/www/sh-container-auth-once" && \
  	echo 'container-auth success'
else
	echo 'container-auth once'
fi

